package diamondServer.clientserver.threadpool;

import org.apache.log4j.Logger;

import diamondServer.businesslogic.manager.DefaultBLManager;

public class ServerTask extends Task {
	
	private static final Logger log = 
		Logger.getLogger(ServerTask.class);
	
	private static int counter = 0;
	
	public ServerTask(String msg) {
		super(msg);
	}

	@Override
	public void toDo() {
		DefaultBLManager.getInstance().process(super.message);
		
		log.info("Server counter is - "  + 
				++counter   + " (# of processed messages)");	
	}



}
